package com.victualler.core.config.permission.repository;

import com.victualler.core.base.repository.BaseRepository;
import com.victualler.core.config.img.entity.ImageItemDao;
import com.victualler.core.config.permission.entity.PermissionInfoDao;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: Guoshichang
 * @discription: 
 */
@Repository
public interface PermissionInfoRepository extends BaseRepository<PermissionInfoDao,Long> {
   @Query("select p from PermissionInfoDao p where p.name like :name")
   public List<PermissionInfoDao> findLikeName(@Param("name")String name);
}
